﻿using DotNetty.Buffers;
using Tars.Net.Attributes;
using Tars.Net.Codecs.Attributes;

namespace QQTars
{
    namespace QQService.ConfigPushSvc
    {
        [TarsStruct]
        public class PushReq
        {
            [TarsStructProperty(1)]
            public int type { get; set; } = 0;
            [TarsStructProperty(2)]
            public IByteBuffer jcebuf { get; set; }
            [TarsStructProperty(3)]
            public long seq { get; set; } = 0;
        }

        [TarsStruct]
        public class PushResp
        {
            [TarsStructProperty(1)]
            public int type { get; set; } = 0;
            [TarsStructProperty(2)]
            public long seq { get; set; } = 0;
            [TarsStructProperty(3)]
            public IByteBuffer jcebuf { get; set; }
        }

        [Rpc("QQService.ConfigPushSvc.MainServant")]
        public interface MainServant
        {
            [Oneway]
            PushResp PushReq(PushReq PushReq);
        }
    }
}
